all:test

test:PageMap3.cpp ../ObjectPool/ObjectPool.cpp
	g++ -o $@ $^ -std=c++17 -lpthread -g


test_64:../ThreadCache/ThreadCache.cpp ../CentralCache/CentralCache.cpp ../PageCache/PageCache.cpp BenchMark.cpp ../ObjectPool/ObjectPool.cpp
	g++ -o $@ $^ -std=c++17 -lpthread
test_32:../ThreadCache/ThreadCache.cpp ../CentralCache/CentralCache.cpp ../PageCache/PageCache.cpp BenchMark.cpp ../ObjectPool/ObjectPool.cpp
	g++ -o $@ $^ -std=c++17 -lpthread -g -m32
.PHONY:clean
clean:
	rm -rf test
	rm -rf test_64
	rm -rf test_32

.PHONY:TestStaticLib
TestStaticLib:BenchMark.cpp
	g++ -o $@ $^ -std=c++17 -L../StaticLib -lMyTcMalloc -lpthread 

.PHONY:TestDynamicLib
TestDynamicLib:BenchMark.cpp
	g++ -o $@ $^ -std=c++17 -L../DynamicLib -lMyTcMalloc -lpthread 